package org.loong.crypto.common.function;

/**
 * Multi-packet encrypt functional interface.
 * 
 * @param <T> the type of the input to the function
 * @param <R> the type of the result of the function
 */
@FunctionalInterface
public interface EncryptFunction<T, R> {

    /**
     * Encrypt data.
     * 
     * @param t the plain text
     * @return cipher text
     */
    R encrypt(T t);
}
